package com.cloud.job.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.api.domain.job.EvStatistics;
import com.cloud.api.domain.report.ProvinceDistribution;
import com.cloud.api.domain.report.VehicleModelCondition;
import com.cloud.api.domain.report.VehiclesEnergy;
import com.cloud.api.domain.report.VehiclesOnLine;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * @author 杨斌
 * 2025-02-2025-02-12
 */
@DS("doris")
public interface EvStatisticsMapper extends BaseMapper<EvStatistics> {

    List<ProvinceDistribution> exportMailProvinceDistributionList(@Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime);

    List<VehiclesOnLine> exportMailVehiclesOnLineList(@Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime);

    List<VehicleModelCondition> exportMailVehiclesModelList(@Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime, @Param("dataSource")String dataSource);

    List<VehiclesEnergy> exportMailVehiclesEnergyList(@Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime, @Param("dataSource")String dataSource);
}
